package com.liming.common.pojo.dto.authinfo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liming
 * @date 2025/1/8
 */
@Data
@Schema(description = "后台登录参数", requiredProperties = {"account", "password"})
public class AdminLoginDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 账号
     */
    @NotBlank
    @Schema(description = "账号 - 用户名|手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String account;

    /**
     * 密码
     */
    @NotBlank
    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String password;

}
